﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lgweb.control.lawyer
{
    public partial class tag : System.Web.UI.UserControl
    {
        public string TagIndex = "1";
        private string _AH = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                SetTagIndex();
            }
        }

        private void SetTagIndex()
        {
            //this._AH = string.IsNullOrEmpty(Request.QueryString["ah"]) ? "" : Request.QueryString["ah"];
            //if (string.IsNullOrEmpty(this._AH))
            //{
            //    Response.Redirect("/lawyer/index.aspx");
            //}
            //this.hdnAH.Value = this._AH;
            switch (this.TagIndex)
            {
                case "1":
                    this.tag_li_1.Attributes.Add("class","current");
                    break;
                case "2":
                    this.tag_li_2.Attributes.Add("class", "current");
                    break;
                case "3":
                    this.tag_li_3.Attributes.Add("class", "current");
                    break;
                case "4":
                    this.tag_li_4.Attributes.Add("class", "current");
                    break;
                case "5":
                    this.tag_li_5.Attributes.Add("class", "current");
                    break;
                case "6":
                    this.tag_li_6.Attributes.Add("class", "current");
                    break;
                default:
                    this.tag_li_1.Attributes.Add("class", "current");
                    break;
            }


        }

    }
}